# Maintainer: Cowington Post <cowingtonpost@gmail.com>
pkgname=youtube-tui
pkgver=0.8.0
pkgrel=0
pkgdesc="Aesthetically pleasing YouTube TUI written in Rust"
url="https://siriusmart.github.io/youtube-tui/"
# loongarch64: blocked by libc crate
arch="all !loongarch64"
license="GPL-3.0-or-later"
makedepends="cargo cargo-auditable mpv-dev libsixel-dev"
source="https://github.com/Siriusmart/youtube-tui/archive/v$pkgver/youtube-tui-$pkgver.tar.gz"

prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --frozen --release
}

package() {
	install -Dm755 target/release/youtube-tui -t "$pkgdir"/usr/bin
}

sha512sums="
85a6b164b82a965f5b95a451ebe4175114db89b3a7ce9741e3b373e677cd961cc582404414b60e7ca0a0ebe2f997d1fab63a24009285db33257368c8289df211  youtube-tui-0.8.0.tar.gz
"
